Getting started with the SDK
All requests are authorized using an OAuth token. See how to get a token here.
import asyncio
from yandex_b2b_go import Client
TOKEN = '<your token>'
async def main():
client = Client(token=TOKEN)
...
asyncio.run(main())
You can also use the context manager for Client.
import asyncio
from yandex_b2b_go import Client
TOKEN = '<your token>'
async def main():
async with Client(token=TOKEN) as client:
...
asyncio.run(main())
Was the article helpful?
Previous
Next